package com.bdqn.wx.demo;

import java.util.Date;

import org.junit.Assert;
import org.junit.BeforeClass;
import org.junit.Test;

import com.bdqn.wx.dao.impl.CommDaoImpl;
import com.bdqn.wx.entity.Comments;

public class CommDaoImplTest {
	
	@Test
	public void testSave() {
		CommDaoImpl dao = new CommDaoImpl();
		try {
			dao.save(new Comments(2,"admin2","today is a good day!",new Date()));
		} catch (Exception e) {
			e.printStackTrace();
			Assert.fail("exception throwed");
		}
		System.out.println("success");
	}
	
}
